<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.15"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>WB32L003 Standard Peripherals Firmware Library: wb32l003_gpio.h Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">WB32L003 Standard Peripherals Firmware Library
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.15 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="dir_6d2d5b60bd20db849a9486835a2715aa.html">Libraries</a></li><li class="navelem"><a class="el" href="dir_5ec8cccc32fa528457f3b4ed28e1a2cf.html">WB32L003_StdPeriph_Driver</a></li><li class="navelem"><a class="el" href="dir_cb9a941ec225bfb9bad4e8246158e282.html">inc</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="headertitle">
<div class="title">wb32l003_gpio.h</div>  </div>
</div><!--header-->
<div class="contents">
<a href="wb32l003__gpio_8h.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160;</div><div class="line"><a name="l00010"></a><span class="lineno">   10</span>&#160;<span class="comment">/* Define to prevent recursive inclusion -------------------------------------*/</span></div><div class="line"><a name="l00011"></a><span class="lineno">   11</span>&#160;<span class="preprocessor">#ifndef __WB32L003_GPIO_H</span></div><div class="line"><a name="l00012"></a><span class="lineno">   12</span>&#160;<span class="preprocessor">#define __WB32L003_GPIO_H</span></div><div class="line"><a name="l00013"></a><span class="lineno">   13</span>&#160;</div><div class="line"><a name="l00014"></a><span class="lineno">   14</span>&#160;<span class="preprocessor">#ifdef __cplusplus</span></div><div class="line"><a name="l00015"></a><span class="lineno">   15</span>&#160; <span class="keyword">extern</span> <span class="stringliteral">&quot;C&quot;</span> {</div><div class="line"><a name="l00016"></a><span class="lineno">   16</span>&#160;<span class="preprocessor">#endif</span></div><div class="line"><a name="l00017"></a><span class="lineno">   17</span>&#160;</div><div class="line"><a name="l00018"></a><span class="lineno">   18</span>&#160;<span class="comment">/* Includes ------------------------------------------------------------------*/</span></div><div class="line"><a name="l00019"></a><span class="lineno">   19</span>&#160;<span class="preprocessor">#include &quot;wb32l003.h&quot;</span></div><div class="line"><a name="l00020"></a><span class="lineno">   20</span>&#160;</div><div class="line"><a name="l00029"></a><span class="lineno">   29</span>&#160;<span class="comment">/* Exported types ------------------------------------------------------------*/</span></div><div class="line"><a name="l00030"></a><span class="lineno">   30</span>&#160;<span class="comment">/* Exported constants --------------------------------------------------------*/</span></div><div class="line"><a name="l00031"></a><span class="lineno">   31</span>&#160;</div><div class="line"><a name="l00036"></a><span class="lineno">   36</span>&#160;<span class="preprocessor">#ifdef WB32L003Fx</span></div><div class="line"><a name="l00037"></a><span class="lineno">   37</span>&#160;<span class="preprocessor">  #define GPIO_NUMBER                       8U</span></div><div class="line"><a name="l00038"></a><span class="lineno">   38</span>&#160;<span class="preprocessor">#elif defined(WB32L003Kx)</span></div><div class="line"><a name="l00039"></a><span class="lineno">   39</span>&#160;<span class="preprocessor">  #define GPIO_NUMBER                       16U</span></div><div class="line"><a name="l00040"></a><span class="lineno">   40</span>&#160;<span class="preprocessor">#endif</span></div><div class="line"><a name="l00041"></a><span class="lineno">   41</span>&#160;</div><div class="line"><a name="l00045"></a><span class="lineno"><a class="line" href="group___g_p_i_o___exported___constants.html#ga176130b21c0e719121470a6042d4cf19">   45</a></span>&#160;<span class="keyword">typedef</span> <span class="keyword">enum</span></div><div class="line"><a name="l00046"></a><span class="lineno">   46</span>&#160;{</div><div class="line"><a name="l00047"></a><span class="lineno">   47</span>&#160;  Bit_RESET = 0,</div><div class="line"><a name="l00048"></a><span class="lineno">   48</span>&#160;  Bit_SET</div><div class="line"><a name="l00049"></a><span class="lineno">   49</span>&#160;} <a class="code" href="group___g_p_i_o___exported___constants.html#ga176130b21c0e719121470a6042d4cf19">BitAction</a>;</div><div class="line"><a name="l00050"></a><span class="lineno">   50</span>&#160;</div><div class="line"><a name="l00054"></a><span class="lineno"><a class="line" href="group___g_p_i_o___pins___define.html#gab305b8d1be9f89bf2b4a05589b456049">   54</a></span>&#160;<span class="preprocessor">#define GPIO_Pin_0                          ((uint16_t)0x0001) </span></div><div class="line"><a name="l00055"></a><span class="lineno"><a class="line" href="group___g_p_i_o___pins___define.html#ga29db642c26f1fa0fffc3ecadcd30f82b">   55</a></span>&#160;<span class="preprocessor">#define GPIO_Pin_1                          ((uint16_t)0x0002) </span></div><div class="line"><a name="l00056"></a><span class="lineno"><a class="line" href="group___g_p_i_o___pins___define.html#gabdf6630324b2f99360537a310687187c">   56</a></span>&#160;<span class="preprocessor">#define GPIO_Pin_2                          ((uint16_t)0x0004) </span></div><div class="line"><a name="l00057"></a><span class="lineno"><a class="line" href="group___g_p_i_o___pins___define.html#ga763c6544859dbe28cd3f8ad820045556">   57</a></span>&#160;<span class="preprocessor">#define GPIO_Pin_3                          ((uint16_t)0x0008) </span></div><div class="line"><a name="l00058"></a><span class="lineno"><a class="line" href="group___g_p_i_o___pins___define.html#gacbf04d09b954606cdcc55eb2e81780e3">   58</a></span>&#160;<span class="preprocessor">#define GPIO_Pin_4                          ((uint16_t)0x0010) </span></div><div class="line"><a name="l00059"></a><span class="lineno"><a class="line" href="group___g_p_i_o___pins___define.html#ga32dbe930f52ce5ab60190c65e9dc741e">   59</a></span>&#160;<span class="preprocessor">#define GPIO_Pin_5                          ((uint16_t)0x0020) </span></div><div class="line"><a name="l00060"></a><span class="lineno"><a class="line" href="group___g_p_i_o___pins___define.html#gaf047899d873f27c2db9f50b342e35a58">   60</a></span>&#160;<span class="preprocessor">#define GPIO_Pin_6                          ((uint16_t)0x0040) </span></div><div class="line"><a name="l00061"></a><span class="lineno"><a class="line" href="group___g_p_i_o___pins___define.html#ga7346b6ce5507bd28a7a79e7dcc816c08">   61</a></span>&#160;<span class="preprocessor">#define GPIO_Pin_7                          ((uint16_t)0x0080) </span></div><div class="line"><a name="l00062"></a><span class="lineno"><a class="line" href="group___g_p_i_o___pins___define.html#gaba3e915ddca17a1211edc07b7fd97e8b">   62</a></span>&#160;<span class="preprocessor">#define GPIO_Pin_All                        ((uint16_t)0x00FF) </span></div><div class="line"><a name="l00071"></a><span class="lineno"><a class="line" href="group___g_p_i_o___m_o_d_e___define.html#ga995e5bd9af1641f9e20d64803b969ef3">   71</a></span>&#160;<span class="preprocessor">#define GPIO_MODE_IN                        ((uint32_t)0x00000000U) </span></div><div class="line"><a name="l00072"></a><span class="lineno"><a class="line" href="group___g_p_i_o___m_o_d_e___define.html#ga8b9e26ba32586932cc345bee5fecb180">   72</a></span>&#160;<span class="preprocessor">#define GPIO_MODE_OUT                       ((uint32_t)0x10000000U) </span></div><div class="line"><a name="l00081"></a><span class="lineno"><a class="line" href="group___g_p_i_o___o_t_y_p_e___define.html#gaf1281bd13a0f400c75ae55f8ca705e34">   81</a></span>&#160;<span class="preprocessor">#define GPIO_OTYPE_PP                       ((uint32_t)0x00000000U) </span></div><div class="line"><a name="l00082"></a><span class="lineno"><a class="line" href="group___g_p_i_o___o_t_y_p_e___define.html#ga791ebbd755e6497dc96a855ad63f82f8">   82</a></span>&#160;<span class="preprocessor">#define GPIO_OTYPE_OD                       ((uint32_t)0x01000000U) </span></div><div class="line"><a name="l00091"></a><span class="lineno"><a class="line" href="group___g_p_i_o___s_p_e_e_d___define.html#ga5510b387afb7ec2117b5d4207889163c">   91</a></span>&#160;<span class="preprocessor">#define GPIO_SPEED_LOW                      ((uint32_t)0x00000000U) </span></div><div class="line"><a name="l00092"></a><span class="lineno"><a class="line" href="group___g_p_i_o___s_p_e_e_d___define.html#gad693110177bf2e34c5431555c6977e8c">   92</a></span>&#160;<span class="preprocessor">#define GPIO_SPEED_HIGH                     ((uint32_t)0x00100000U) </span></div><div class="line"><a name="l00101"></a><span class="lineno"><a class="line" href="group___g_p_i_o___p_u_p_d___define.html#ga9e4be4d5e5e4e03e66227b6f72210a20">  101</a></span>&#160;<span class="preprocessor">#define GPIO_PUPD_NOPULL                    ((uint32_t)0x00000000U) </span></div><div class="line"><a name="l00102"></a><span class="lineno"><a class="line" href="group___g_p_i_o___p_u_p_d___define.html#ga2aff468ea8bbed30f4cf9b09cf7fdafa">  102</a></span>&#160;<span class="preprocessor">#define GPIO_PUPD_UP                        ((uint32_t)0x00010000U) </span></div><div class="line"><a name="l00103"></a><span class="lineno"><a class="line" href="group___g_p_i_o___p_u_p_d___define.html#ga3cdf3adba9cad2128b01658c6e3694ad">  103</a></span>&#160;<span class="preprocessor">#define GPIO_PUPD_DOWN                      ((uint32_t)0x00020000U) </span></div><div class="line"><a name="l00112"></a><span class="lineno"><a class="line" href="group___g_p_i_o___d_r_v___define.html#gad76685917a694f3d003eaa5f0f3c507d">  112</a></span>&#160;<span class="preprocessor">#define GPIO_DRV_HIGH                       ((uint32_t)0x00000000U) </span></div><div class="line"><a name="l00113"></a><span class="lineno"><a class="line" href="group___g_p_i_o___d_r_v___define.html#ga6d5521442da8e16adef8d05348a7c7f6">  113</a></span>&#160;<span class="preprocessor">#define GPIO_DRV_LOW                        ((uint32_t)0x00001000U) </span></div><div class="line"><a name="l00122"></a><span class="lineno"><a class="line" href="group___g_p_i_o___e_x_t_i___define.html#gabb841d115c04bdf79eb61d735173db44">  122</a></span>&#160;<span class="preprocessor">#define GPIO_EXTI_IT_DISABLE                ((uint32_t)0x00000000U) </span></div><div class="line"><a name="l00123"></a><span class="lineno"><a class="line" href="group___g_p_i_o___e_x_t_i___define.html#gaa70bfb36a3fd13a8000a9a247fec6147">  123</a></span>&#160;<span class="preprocessor">#define GPIO_EXTI_IT_ENABLE                 ((uint32_t)0x00000100U) </span></div><div class="line"><a name="l00124"></a><span class="lineno"><a class="line" href="group___g_p_i_o___e_x_t_i___define.html#gad6573e4ceb876ea51604e031758878cf">  124</a></span>&#160;<span class="preprocessor">#define GPIO_EXTI_TRIGGER_EDGE              ((uint32_t)0x00000000U) </span></div><div class="line"><a name="l00125"></a><span class="lineno"><a class="line" href="group___g_p_i_o___e_x_t_i___define.html#ga8e4aed0a7f57659320768d8dc4566b2a">  125</a></span>&#160;<span class="preprocessor">#define GPIO_EXTI_TRIGGER_LEVEL             ((uint32_t)0x00000200U) </span></div><div class="line"><a name="l00126"></a><span class="lineno"><a class="line" href="group___g_p_i_o___e_x_t_i___define.html#ga67c3c12b41f7b5816e2497ed9973372f">  126</a></span>&#160;<span class="preprocessor">#define GPIO_EXTI_TRIGGER_LOW               ((uint32_t)0x00000000U) </span></div><div class="line"><a name="l00127"></a><span class="lineno"><a class="line" href="group___g_p_i_o___e_x_t_i___define.html#ga71770335bfef8dd2a566cf75833eeaf0">  127</a></span>&#160;<span class="preprocessor">#define GPIO_EXTI_TRIGGER_HIGH              ((uint32_t)0x00000400U) </span></div><div class="line"><a name="l00128"></a><span class="lineno"><a class="line" href="group___g_p_i_o___e_x_t_i___define.html#gad89673856c5100829f5088d0fef28219">  128</a></span>&#160;<span class="preprocessor">#define GPIO_EXTI_TRIGGER_FALLING           ((uint32_t)0x00000000U) </span></div><div class="line"><a name="l00129"></a><span class="lineno"><a class="line" href="group___g_p_i_o___e_x_t_i___define.html#ga6b278cfa20a26a10c4e468a85adbd814">  129</a></span>&#160;<span class="preprocessor">#define GPIO_EXTI_TRIGGER_RISSING           ((uint32_t)0x00000400U) </span></div><div class="line"><a name="l00130"></a><span class="lineno"><a class="line" href="group___g_p_i_o___e_x_t_i___define.html#ga83823d5e56187e3c777de22171c118e8">  130</a></span>&#160;<span class="preprocessor">#define GPIO_EXTI_TRIGGER_RISSING_FALLING   ((uint32_t)0x00000800U) </span></div><div class="line"><a name="l00131"></a><span class="lineno">  131</span>&#160;<span class="preprocessor">#define GPIO_EXTI_Mask                      ((uint32_t)0x00000F00U)</span></div><div class="line"><a name="l00132"></a><span class="lineno">  132</span>&#160;</div><div class="line"><a name="l00140"></a><span class="lineno"><a class="line" href="group___g_p_i_o___d_b___define.html#ga357a46ac8d270893db2a8fb6fe0bb3c7">  140</a></span>&#160;<span class="preprocessor">#define GPIO_DB_DISABLE                     ((uint32_t)0x00000000U) </span></div><div class="line"><a name="l00141"></a><span class="lineno"><a class="line" href="group___g_p_i_o___d_b___define.html#gae7202d7244fdd500c7e074ac2ebe62db">  141</a></span>&#160;<span class="preprocessor">#define GPIO_DB_ENABLE                      ((uint32_t)0x00000010U) </span></div><div class="line"><a name="l00142"></a><span class="lineno"><a class="line" href="group___g_p_i_o___d_b___define.html#ga6e151724f32ba1a8b371489995426f3a">  142</a></span>&#160;<span class="preprocessor">#define GPIO_DB_SYNC_DISABLE                ((uint32_t)0x00000000U) </span></div><div class="line"><a name="l00143"></a><span class="lineno"><a class="line" href="group___g_p_i_o___d_b___define.html#ga7b37ace4aa171a274ef0bee3d1c8e382">  143</a></span>&#160;<span class="preprocessor">#define GPIO_DB_SYNC_ENABLE                 ((uint32_t)0x00000020U) </span></div><div class="line"><a name="l00144"></a><span class="lineno">  144</span>&#160;<span class="preprocessor">#define GPIO_DB_CLK_DIV_1                   ((uint32_t)0x00000000U)</span></div><div class="line"><a name="l00145"></a><span class="lineno">  145</span>&#160;<span class="preprocessor">#define GPIO_DB_CLK_DIV_2                   ((uint32_t)0x00000001U)</span></div><div class="line"><a name="l00146"></a><span class="lineno">  146</span>&#160;<span class="preprocessor">#define GPIO_DB_CLK_DIV_4                   ((uint32_t)0x00000002U)</span></div><div class="line"><a name="l00147"></a><span class="lineno">  147</span>&#160;<span class="preprocessor">#define GPIO_DB_CLK_DIV_8                   ((uint32_t)0x00000003U)</span></div><div class="line"><a name="l00148"></a><span class="lineno">  148</span>&#160;<span class="preprocessor">#define GPIO_DB_CLK_DIV_16                  ((uint32_t)0x00000004U)</span></div><div class="line"><a name="l00149"></a><span class="lineno">  149</span>&#160;<span class="preprocessor">#define GPIO_DB_CLK_DIV_32                  ((uint32_t)0x00000005U)</span></div><div class="line"><a name="l00150"></a><span class="lineno">  150</span>&#160;<span class="preprocessor">#define GPIO_DB_CLK_DIV_64                  ((uint32_t)0x00000006U)</span></div><div class="line"><a name="l00151"></a><span class="lineno">  151</span>&#160;<span class="preprocessor">#define GPIO_DB_CLK_DIV_128                 ((uint32_t)0x00000007U)</span></div><div class="line"><a name="l00152"></a><span class="lineno">  152</span>&#160;<span class="preprocessor">#define GPIO_DB_CLK_DIV_256                 ((uint32_t)0x00000008U)</span></div><div class="line"><a name="l00153"></a><span class="lineno">  153</span>&#160;<span class="preprocessor">#define GPIO_DB_CLK_DIV_512                 ((uint32_t)0x00000009U)</span></div><div class="line"><a name="l00154"></a><span class="lineno">  154</span>&#160;<span class="preprocessor">#define GPIO_DB_CLK_DIV_1024                ((uint32_t)0x0000000AU)</span></div><div class="line"><a name="l00155"></a><span class="lineno">  155</span>&#160;<span class="preprocessor">#define GPIO_DB_CLK_DIV_2048                ((uint32_t)0x0000000BU)</span></div><div class="line"><a name="l00156"></a><span class="lineno">  156</span>&#160;<span class="preprocessor">#define GPIO_DB_CLK_DIV_4096                ((uint32_t)0x0000000CU)</span></div><div class="line"><a name="l00157"></a><span class="lineno">  157</span>&#160;<span class="preprocessor">#define GPIO_DB_CLK_DIV_8192                ((uint32_t)0x0000000DU)</span></div><div class="line"><a name="l00158"></a><span class="lineno">  158</span>&#160;<span class="preprocessor">#define GPIO_DB_CLK_DIV_16384               ((uint32_t)0x0000000EU)</span></div><div class="line"><a name="l00159"></a><span class="lineno">  159</span>&#160;<span class="preprocessor">#define GPIO_DB_CLK_DIV_32768               ((uint32_t)0x0000000FU)</span></div><div class="line"><a name="l00160"></a><span class="lineno">  160</span>&#160;<span class="preprocessor">#define GPIO_DB_Mask                        ((uint32_t)0x000000FFU)</span></div><div class="line"><a name="l00161"></a><span class="lineno">  161</span>&#160;</div><div class="line"><a name="l00169"></a><span class="lineno">  169</span>&#160;<span class="preprocessor">#define GPIO_AF0                            ((uint32_t)0x00000000U)</span></div><div class="line"><a name="l00170"></a><span class="lineno">  170</span>&#160;<span class="preprocessor">#define GPIO_AF1                            ((uint32_t)0x00000001U)</span></div><div class="line"><a name="l00171"></a><span class="lineno">  171</span>&#160;<span class="preprocessor">#define GPIO_AF2                            ((uint32_t)0x00000002U)</span></div><div class="line"><a name="l00172"></a><span class="lineno">  172</span>&#160;<span class="preprocessor">#define GPIO_AF3                            ((uint32_t)0x00000003U)</span></div><div class="line"><a name="l00173"></a><span class="lineno">  173</span>&#160;<span class="preprocessor">#define GPIO_AF4                            ((uint32_t)0x00000004U)</span></div><div class="line"><a name="l00174"></a><span class="lineno">  174</span>&#160;<span class="preprocessor">#define GPIO_AF5                            ((uint32_t)0x00000005U)</span></div><div class="line"><a name="l00175"></a><span class="lineno">  175</span>&#160;<span class="preprocessor">#define GPIO_AF6                            ((uint32_t)0x00000006U)</span></div><div class="line"><a name="l00176"></a><span class="lineno">  176</span>&#160;<span class="preprocessor">#define GPIO_AF7                            ((uint32_t)0x00000007U)</span></div><div class="line"><a name="l00177"></a><span class="lineno">  177</span>&#160;<span class="preprocessor">#define GPIO_AF8                            ((uint32_t)0x00000008U)</span></div><div class="line"><a name="l00178"></a><span class="lineno">  178</span>&#160;<span class="preprocessor">#define GPIO_AF9                            ((uint32_t)0x00000009U)</span></div><div class="line"><a name="l00179"></a><span class="lineno">  179</span>&#160;<span class="preprocessor">#define GPIO_AF10                           ((uint32_t)0x0000000AU)</span></div><div class="line"><a name="l00180"></a><span class="lineno">  180</span>&#160;<span class="preprocessor">#define GPIO_AF11                           ((uint32_t)0x0000000BU)</span></div><div class="line"><a name="l00181"></a><span class="lineno">  181</span>&#160;<span class="preprocessor">#define GPIO_AF12                           ((uint32_t)0x0000000CU)</span></div><div class="line"><a name="l00182"></a><span class="lineno">  182</span>&#160;<span class="preprocessor">#define GPIO_AF13                           ((uint32_t)0x0000000DU)</span></div><div class="line"><a name="l00183"></a><span class="lineno">  183</span>&#160;<span class="preprocessor">#define GPIO_AF14                           ((uint32_t)0x0000000EU)</span></div><div class="line"><a name="l00184"></a><span class="lineno">  184</span>&#160;<span class="preprocessor">#define GPIO_AF15                           ((uint32_t)0x0000000FU)</span></div><div class="line"><a name="l00185"></a><span class="lineno">  185</span>&#160;<span class="preprocessor">#define GPIO_AF_Mask                        ((uint32_t)0x0000000FU)</span></div><div class="line"><a name="l00186"></a><span class="lineno">  186</span>&#160;</div><div class="line"><a name="l00194"></a><span class="lineno">  194</span>&#160;<span class="comment">/* Exported macro ------------------------------------------------------------*/</span></div><div class="line"><a name="l00195"></a><span class="lineno">  195</span>&#160;</div><div class="line"><a name="l00196"></a><span class="lineno">  196</span>&#160;<span class="preprocessor">#define IS_GPIO_ALL_PERIPH(PERIPH) (((PERIPH) == GPIOA) || \</span></div><div class="line"><a name="l00197"></a><span class="lineno">  197</span>&#160;<span class="preprocessor">                                    ((PERIPH) == GPIOB) || \</span></div><div class="line"><a name="l00198"></a><span class="lineno">  198</span>&#160;<span class="preprocessor">                                    ((PERIPH) == GPIOC) || \</span></div><div class="line"><a name="l00199"></a><span class="lineno">  199</span>&#160;<span class="preprocessor">                                    ((PERIPH) == GPIOD))</span></div><div class="line"><a name="l00200"></a><span class="lineno">  200</span>&#160;</div><div class="line"><a name="l00201"></a><span class="lineno">  201</span>&#160;<span class="preprocessor">#define IS_GET_GPIO_PIN(PIN) (((PIN) == GPIO_Pin_0) || \</span></div><div class="line"><a name="l00202"></a><span class="lineno">  202</span>&#160;<span class="preprocessor">                              ((PIN) == GPIO_Pin_1) || \</span></div><div class="line"><a name="l00203"></a><span class="lineno">  203</span>&#160;<span class="preprocessor">                              ((PIN) == GPIO_Pin_2) || \</span></div><div class="line"><a name="l00204"></a><span class="lineno">  204</span>&#160;<span class="preprocessor">                              ((PIN) == GPIO_Pin_3) || \</span></div><div class="line"><a name="l00205"></a><span class="lineno">  205</span>&#160;<span class="preprocessor">                              ((PIN) == GPIO_Pin_4) || \</span></div><div class="line"><a name="l00206"></a><span class="lineno">  206</span>&#160;<span class="preprocessor">                              ((PIN) == GPIO_Pin_5) || \</span></div><div class="line"><a name="l00207"></a><span class="lineno">  207</span>&#160;<span class="preprocessor">                              ((PIN) == GPIO_Pin_6) || \</span></div><div class="line"><a name="l00208"></a><span class="lineno">  208</span>&#160;<span class="preprocessor">                              ((PIN) == GPIO_Pin_7))</span></div><div class="line"><a name="l00209"></a><span class="lineno">  209</span>&#160;</div><div class="line"><a name="l00210"></a><span class="lineno">  210</span>&#160;<span class="preprocessor">#define IS_GPIO_PIN(PIN) (((PIN) &amp; 0x000000FF) != (uint32_t)0x00)</span></div><div class="line"><a name="l00211"></a><span class="lineno">  211</span>&#160;</div><div class="line"><a name="l00212"></a><span class="lineno">  212</span>&#160;<span class="preprocessor">#define IS_GPIO_BIT_ACTION(ACTION) (((ACTION) == Bit_RESET) || ((ACTION) == Bit_SET))</span></div><div class="line"><a name="l00213"></a><span class="lineno">  213</span>&#160;</div><div class="line"><a name="l00214"></a><span class="lineno">  214</span>&#160;<span class="comment">/* Exported functions --------------------------------------------------------*/</span></div><div class="line"><a name="l00215"></a><span class="lineno">  215</span>&#160;</div><div class="line"><a name="l00216"></a><span class="lineno">  216</span>&#160;<span class="keywordtype">void</span> <a class="code" href="group___g_p_i_o.html#gaa60bdf3182c44b5fa818f237042f52ee">GPIO_DeInit</a>(<a class="code" href="struct_g_p_i_o___type_def.html">GPIO_TypeDef</a> *GPIOx);</div><div class="line"><a name="l00217"></a><span class="lineno">  217</span>&#160;<span class="keywordtype">void</span> <a class="code" href="group___g_p_i_o.html#gab109a0ce9ac596f69b0283a897764994">GPIO_Init</a>(<a class="code" href="struct_g_p_i_o___type_def.html">GPIO_TypeDef</a> *GPIOx, uint16_t GPIO_Pin, uint32_t PinConfig);</div><div class="line"><a name="l00218"></a><span class="lineno">  218</span>&#160;<span class="keywordtype">void</span> <a class="code" href="group___g_p_i_o.html#ga60359a4144cb88e500edc35d45bd89f0">GPIO_SetAFPin</a>(<a class="code" href="struct_g_p_i_o___type_def.html">GPIO_TypeDef</a> *GPIOx, uint16_t GPIO_Pin, uint32_t Alternate);</div><div class="line"><a name="l00219"></a><span class="lineno">  219</span>&#160;uint8_t <a class="code" href="group___g_p_i_o.html#ga98772ef6b639b3fa06c8ae5ba28d3aaa">GPIO_ReadInputDataBit</a>(<a class="code" href="struct_g_p_i_o___type_def.html">GPIO_TypeDef</a> *GPIOx, uint16_t GPIO_Pin);</div><div class="line"><a name="l00220"></a><span class="lineno">  220</span>&#160;uint16_t <a class="code" href="group___g_p_i_o.html#ga139a33adc8409288e9f193bbebb5a0f7">GPIO_ReadInputData</a>(<a class="code" href="struct_g_p_i_o___type_def.html">GPIO_TypeDef</a> *GPIOx);</div><div class="line"><a name="l00221"></a><span class="lineno">  221</span>&#160;uint8_t <a class="code" href="group___g_p_i_o.html#ga138270f8695b105b7c6ed405792919c1">GPIO_ReadOutputDataBit</a>(<a class="code" href="struct_g_p_i_o___type_def.html">GPIO_TypeDef</a> *GPIOx, uint16_t GPIO_Pin);</div><div class="line"><a name="l00222"></a><span class="lineno">  222</span>&#160;uint16_t <a class="code" href="group___g_p_i_o.html#gaf8938a34280b7dc3e39872a7c17bb323">GPIO_ReadOutputData</a>(<a class="code" href="struct_g_p_i_o___type_def.html">GPIO_TypeDef</a> *GPIOx);</div><div class="line"><a name="l00223"></a><span class="lineno">  223</span>&#160;<span class="keywordtype">void</span> <a class="code" href="group___g_p_i_o.html#ga9e1352eed7c6620e18af2d86f6b6ff8e">GPIO_SetBits</a>(<a class="code" href="struct_g_p_i_o___type_def.html">GPIO_TypeDef</a> *GPIOx, uint16_t GPIO_Pin);</div><div class="line"><a name="l00224"></a><span class="lineno">  224</span>&#160;<span class="keywordtype">void</span> <a class="code" href="group___g_p_i_o.html#ga6fcd35b207a66608dd2c9d7de9247dc8">GPIO_ResetBits</a>(<a class="code" href="struct_g_p_i_o___type_def.html">GPIO_TypeDef</a> *GPIOx, uint16_t GPIO_Pin);</div><div class="line"><a name="l00225"></a><span class="lineno">  225</span>&#160;<span class="keywordtype">void</span> <a class="code" href="group___g_p_i_o.html#ga8f7b237fd744d9f7456fbe0da47a9b80">GPIO_WriteBit</a>(<a class="code" href="struct_g_p_i_o___type_def.html">GPIO_TypeDef</a> *GPIOx, uint16_t GPIO_Pin, <a class="code" href="group___g_p_i_o___exported___constants.html#ga176130b21c0e719121470a6042d4cf19">BitAction</a> BitVal);</div><div class="line"><a name="l00226"></a><span class="lineno">  226</span>&#160;<span class="keywordtype">void</span> <a class="code" href="group___g_p_i_o.html#gaa925f19c8547a00c7a0c269a84873bf9">GPIO_Write</a>(<a class="code" href="struct_g_p_i_o___type_def.html">GPIO_TypeDef</a> *GPIOx, uint16_t PortVal);</div><div class="line"><a name="l00227"></a><span class="lineno">  227</span>&#160;<span class="keywordtype">void</span> <a class="code" href="group___g_p_i_o.html#gac1b837c66258872740d5f89f23549ab1">GPIO_ToggleBits</a>(<a class="code" href="struct_g_p_i_o___type_def.html">GPIO_TypeDef</a> *GPIOx, uint16_t GPIO_Pin);</div><div class="line"><a name="l00228"></a><span class="lineno">  228</span>&#160;<span class="keywordtype">void</span> <a class="code" href="group___g_p_i_o.html#ga8a76463af43c4879de43feb9ceaf19e7">GPIO_DriveCurrentConfig</a>(<a class="code" href="struct_g_p_i_o___type_def.html">GPIO_TypeDef</a> *GPIOx, uint16_t GPIO_Pin, uint32_t Current);</div><div class="line"><a name="l00229"></a><span class="lineno">  229</span>&#160;<span class="keywordtype">void</span> <a class="code" href="group___g_p_i_o.html#gaa488f5904cef147ada02feca1de10fd7">GPIO_EXTIConfig</a>(<a class="code" href="struct_g_p_i_o___type_def.html">GPIO_TypeDef</a> *GPIOx, uint16_t GPIO_Pin, uint32_t EXTI_Config);</div><div class="line"><a name="l00230"></a><span class="lineno">  230</span>&#160;<span class="keywordtype">void</span> <a class="code" href="group___g_p_i_o.html#ga3a98f295ef315b81c22b7e95a5f83948">GPIO_DebounceConfig</a>(<a class="code" href="struct_g_p_i_o___type_def.html">GPIO_TypeDef</a> *GPIOx, uint16_t GPIO_Pin, uint32_t DebounceConfig);</div><div class="line"><a name="l00231"></a><span class="lineno">  231</span>&#160;FlagStatus <a class="code" href="group___g_p_i_o.html#gaa66bd2ddefd603695034080bb0b6f5d8">GPIO_EXTI_GetFlagStatus</a>(<a class="code" href="struct_g_p_i_o___type_def.html">GPIO_TypeDef</a> *GPIOx, uint16_t GPIO_Pin);</div><div class="line"><a name="l00232"></a><span class="lineno">  232</span>&#160;<span class="keywordtype">void</span> <a class="code" href="group___g_p_i_o.html#gaba67902989971e4827cc028b7cf795a9">GPIO_EXTI_ClearFlag</a>(<a class="code" href="struct_g_p_i_o___type_def.html">GPIO_TypeDef</a> *GPIOx, uint16_t GPIO_Pin);</div><div class="line"><a name="l00233"></a><span class="lineno">  233</span>&#160;ITStatus <a class="code" href="group___g_p_i_o.html#ga085def665ec9a4477f1916c54bd62bf5">GPIO_EXTI_GetIT</a>(<a class="code" href="struct_g_p_i_o___type_def.html">GPIO_TypeDef</a> *GPIOx, uint16_t GPIO_Pin);</div><div class="line"><a name="l00234"></a><span class="lineno">  234</span>&#160;<span class="keywordtype">void</span> <a class="code" href="group___g_p_i_o.html#ga2ba0cbf96bbf15c9ae4c36786453ec58">GPIO_EXTI_ClearIT</a>(<a class="code" href="struct_g_p_i_o___type_def.html">GPIO_TypeDef</a> *GPIOx, uint16_t GPIO_Pin);</div><div class="line"><a name="l00235"></a><span class="lineno">  235</span>&#160;</div><div class="line"><a name="l00244"></a><span class="lineno">  244</span>&#160;<span class="preprocessor">#ifdef __cplusplus</span></div><div class="line"><a name="l00245"></a><span class="lineno">  245</span>&#160;}</div><div class="line"><a name="l00246"></a><span class="lineno">  246</span>&#160;<span class="preprocessor">#endif</span></div><div class="line"><a name="l00247"></a><span class="lineno">  247</span>&#160;</div><div class="line"><a name="l00248"></a><span class="lineno">  248</span>&#160;<span class="preprocessor">#endif </span><span class="comment">/* __WB32L003_GPIO_H */</span><span class="preprocessor"></span></div><div class="ttc" id="group___g_p_i_o_html_ga8a76463af43c4879de43feb9ceaf19e7"><div class="ttname"><a href="group___g_p_i_o.html#ga8a76463af43c4879de43feb9ceaf19e7">GPIO_DriveCurrentConfig</a></div><div class="ttdeci">void GPIO_DriveCurrentConfig(GPIO_TypeDef *GPIOx, uint16_t GPIO_Pin, uint32_t Current)</div><div class="ttdoc">Configure the drive current of several pins for a specified port.</div><div class="ttdef"><b>Definition:</b> wb32l003_gpio.c:337</div></div>
<div class="ttc" id="group___g_p_i_o_html_ga98772ef6b639b3fa06c8ae5ba28d3aaa"><div class="ttname"><a href="group___g_p_i_o.html#ga98772ef6b639b3fa06c8ae5ba28d3aaa">GPIO_ReadInputDataBit</a></div><div class="ttdeci">uint8_t GPIO_ReadInputDataBit(GPIO_TypeDef *GPIOx, uint16_t GPIO_Pin)</div><div class="ttdoc">Reads the specified input port pin.</div><div class="ttdef"><b>Definition:</b> wb32l003_gpio.c:164</div></div>
<div class="ttc" id="group___g_p_i_o_html_gaba67902989971e4827cc028b7cf795a9"><div class="ttname"><a href="group___g_p_i_o.html#gaba67902989971e4827cc028b7cf795a9">GPIO_EXTI_ClearFlag</a></div><div class="ttdeci">void GPIO_EXTI_ClearFlag(GPIO_TypeDef *GPIOx, uint16_t GPIO_Pin)</div><div class="ttdoc">Clears the GPIO_Pin's EXTI line pending flags.</div><div class="ttdef"><b>Definition:</b> wb32l003_gpio.c:497</div></div>
<div class="ttc" id="group___g_p_i_o_html_gac1b837c66258872740d5f89f23549ab1"><div class="ttname"><a href="group___g_p_i_o.html#gac1b837c66258872740d5f89f23549ab1">GPIO_ToggleBits</a></div><div class="ttdeci">void GPIO_ToggleBits(GPIO_TypeDef *GPIOx, uint16_t GPIO_Pin)</div><div class="ttdoc">Toggle data value for several pin of specified port.</div><div class="ttdef"><b>Definition:</b> wb32l003_gpio.c:318</div></div>
<div class="ttc" id="group___g_p_i_o_html_gaa66bd2ddefd603695034080bb0b6f5d8"><div class="ttname"><a href="group___g_p_i_o.html#gaa66bd2ddefd603695034080bb0b6f5d8">GPIO_EXTI_GetFlagStatus</a></div><div class="ttdeci">FlagStatus GPIO_EXTI_GetFlagStatus(GPIO_TypeDef *GPIOx, uint16_t GPIO_Pin)</div><div class="ttdoc">Checks whether the specified GPIO_Pin's EXTI line flag is set or not.</div><div class="ttdef"><b>Definition:</b> wb32l003_gpio.c:470</div></div>
<div class="ttc" id="group___g_p_i_o_html_ga138270f8695b105b7c6ed405792919c1"><div class="ttname"><a href="group___g_p_i_o.html#ga138270f8695b105b7c6ed405792919c1">GPIO_ReadOutputDataBit</a></div><div class="ttdeci">uint8_t GPIO_ReadOutputDataBit(GPIO_TypeDef *GPIOx, uint16_t GPIO_Pin)</div><div class="ttdoc">Reads the specified output data port bit.</div><div class="ttdef"><b>Definition:</b> wb32l003_gpio.c:204</div></div>
<div class="ttc" id="group___g_p_i_o_html_gaf8938a34280b7dc3e39872a7c17bb323"><div class="ttname"><a href="group___g_p_i_o.html#gaf8938a34280b7dc3e39872a7c17bb323">GPIO_ReadOutputData</a></div><div class="ttdeci">uint16_t GPIO_ReadOutputData(GPIO_TypeDef *GPIOx)</div><div class="ttdoc">Reads the specified GPIO output data port.</div><div class="ttdef"><b>Definition:</b> wb32l003_gpio.c:229</div></div>
<div class="ttc" id="struct_g_p_i_o___type_def_html"><div class="ttname"><a href="struct_g_p_i_o___type_def.html">GPIO_TypeDef</a></div><div class="ttdef"><b>Definition:</b> wb32l003.h:531</div></div>
<div class="ttc" id="group___g_p_i_o_html_ga8f7b237fd744d9f7456fbe0da47a9b80"><div class="ttname"><a href="group___g_p_i_o.html#ga8f7b237fd744d9f7456fbe0da47a9b80">GPIO_WriteBit</a></div><div class="ttdeci">void GPIO_WriteBit(GPIO_TypeDef *GPIOx, uint16_t GPIO_Pin, BitAction BitVal)</div><div class="ttdoc">Sets or clears the selected data port bit.</div><div class="ttdef"><b>Definition:</b> wb32l003_gpio.c:280</div></div>
<div class="ttc" id="group___g_p_i_o_html_ga3a98f295ef315b81c22b7e95a5f83948"><div class="ttname"><a href="group___g_p_i_o.html#ga3a98f295ef315b81c22b7e95a5f83948">GPIO_DebounceConfig</a></div><div class="ttdeci">void GPIO_DebounceConfig(GPIO_TypeDef *GPIOx, uint16_t GPIO_Pin, uint32_t DebounceConfig)</div><div class="ttdoc">Handles the configuration of GPIO debounce.</div><div class="ttdef"><b>Definition:</b> wb32l003_gpio.c:413</div></div>
<div class="ttc" id="group___g_p_i_o_html_ga9e1352eed7c6620e18af2d86f6b6ff8e"><div class="ttname"><a href="group___g_p_i_o.html#ga9e1352eed7c6620e18af2d86f6b6ff8e">GPIO_SetBits</a></div><div class="ttdeci">void GPIO_SetBits(GPIO_TypeDef *GPIOx, uint16_t GPIO_Pin)</div><div class="ttdoc">Sets the selected data port bits.</div><div class="ttdef"><b>Definition:</b> wb32l003_gpio.c:244</div></div>
<div class="ttc" id="group___g_p_i_o_html_ga2ba0cbf96bbf15c9ae4c36786453ec58"><div class="ttname"><a href="group___g_p_i_o.html#ga2ba0cbf96bbf15c9ae4c36786453ec58">GPIO_EXTI_ClearIT</a></div><div class="ttdeci">void GPIO_EXTI_ClearIT(GPIO_TypeDef *GPIOx, uint16_t GPIO_Pin)</div><div class="ttdoc">Clears the GPIO_Pin's EXTI line pending bits.</div><div class="ttdef"><b>Definition:</b> wb32l003_gpio.c:540</div></div>
<div class="ttc" id="group___g_p_i_o_html_ga085def665ec9a4477f1916c54bd62bf5"><div class="ttname"><a href="group___g_p_i_o.html#ga085def665ec9a4477f1916c54bd62bf5">GPIO_EXTI_GetIT</a></div><div class="ttdeci">ITStatus GPIO_EXTI_GetIT(GPIO_TypeDef *GPIOx, uint16_t GPIO_Pin)</div><div class="ttdoc">Checks that the interrupt of the EXTI line for the specified GPIO Pin is enabled.</div><div class="ttdef"><b>Definition:</b> wb32l003_gpio.c:513</div></div>
<div class="ttc" id="group___g_p_i_o_html_ga60359a4144cb88e500edc35d45bd89f0"><div class="ttname"><a href="group___g_p_i_o.html#ga60359a4144cb88e500edc35d45bd89f0">GPIO_SetAFPin</a></div><div class="ttdeci">void GPIO_SetAFPin(GPIO_TypeDef *GPIOx, uint16_t GPIO_Pin, uint32_t Alternate)</div><div class="ttdoc">Configure gpio alternate function of any pins for a dedicated port.</div><div class="ttdef"><b>Definition:</b> wb32l003_gpio.c:135</div></div>
<div class="ttc" id="group___g_p_i_o_html_gaa925f19c8547a00c7a0c269a84873bf9"><div class="ttname"><a href="group___g_p_i_o.html#gaa925f19c8547a00c7a0c269a84873bf9">GPIO_Write</a></div><div class="ttdeci">void GPIO_Write(GPIO_TypeDef *GPIOx, uint16_t PortVal)</div><div class="ttdoc">Writes data to the specified GPIO data port.</div><div class="ttdef"><b>Definition:</b> wb32l003_gpio.c:303</div></div>
<div class="ttc" id="group___g_p_i_o_html_gaa488f5904cef147ada02feca1de10fd7"><div class="ttname"><a href="group___g_p_i_o.html#gaa488f5904cef147ada02feca1de10fd7">GPIO_EXTIConfig</a></div><div class="ttdeci">void GPIO_EXTIConfig(GPIO_TypeDef *GPIOx, uint16_t GPIO_Pin, uint32_t EXTI_Config)</div><div class="ttdoc">Handles the configuration of GPIO_Pin's EXTI.</div><div class="ttdef"><b>Definition:</b> wb32l003_gpio.c:368</div></div>
<div class="ttc" id="group___g_p_i_o_html_ga6fcd35b207a66608dd2c9d7de9247dc8"><div class="ttname"><a href="group___g_p_i_o.html#ga6fcd35b207a66608dd2c9d7de9247dc8">GPIO_ResetBits</a></div><div class="ttdeci">void GPIO_ResetBits(GPIO_TypeDef *GPIOx, uint16_t GPIO_Pin)</div><div class="ttdoc">Clears the selected data port bits.</div><div class="ttdef"><b>Definition:</b> wb32l003_gpio.c:260</div></div>
<div class="ttc" id="group___g_p_i_o_html_gab109a0ce9ac596f69b0283a897764994"><div class="ttname"><a href="group___g_p_i_o.html#gab109a0ce9ac596f69b0283a897764994">GPIO_Init</a></div><div class="ttdeci">void GPIO_Init(GPIO_TypeDef *GPIOx, uint16_t GPIO_Pin, uint32_t PinConfig)</div><div class="ttdoc">Initializes the GPIOx peripheral according to the PinConfig.</div><div class="ttdef"><b>Definition:</b> wb32l003_gpio.c:74</div></div>
<div class="ttc" id="group___g_p_i_o_html_ga139a33adc8409288e9f193bbebb5a0f7"><div class="ttname"><a href="group___g_p_i_o.html#ga139a33adc8409288e9f193bbebb5a0f7">GPIO_ReadInputData</a></div><div class="ttdeci">uint16_t GPIO_ReadInputData(GPIO_TypeDef *GPIOx)</div><div class="ttdoc">Reads the specified GPIO input data port.</div><div class="ttdef"><b>Definition:</b> wb32l003_gpio.c:189</div></div>
<div class="ttc" id="group___g_p_i_o_html_gaa60bdf3182c44b5fa818f237042f52ee"><div class="ttname"><a href="group___g_p_i_o.html#gaa60bdf3182c44b5fa818f237042f52ee">GPIO_DeInit</a></div><div class="ttdeci">void GPIO_DeInit(GPIO_TypeDef *GPIOx)</div><div class="ttdoc">De-initializes the GPIOx peripheral registers to their default reset values.</div><div class="ttdef"><b>Definition:</b> wb32l003_gpio.c:37</div></div>
<div class="ttc" id="group___g_p_i_o___exported___constants_html_ga176130b21c0e719121470a6042d4cf19"><div class="ttname"><a href="group___g_p_i_o___exported___constants.html#ga176130b21c0e719121470a6042d4cf19">BitAction</a></div><div class="ttdeci">BitAction</div><div class="ttdoc">GPIO Bit SET and Bit RESET enumeration.</div><div class="ttdef"><b>Definition:</b> wb32l003_gpio.h:45</div></div>
</div><!-- fragment --></div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by Westberry Technology (ChangZhou) Corp., Ltd. All rights reserved.
</small></address>
</body>
</html>
